package com.website.shiro;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.eis.MemorySessionDAO;

import java.io.Serializable;

/**
 * sessionDao,可以做分布式实现保存
 *
 * @author zhangshuw
 * @date 2018/7/17
 */
public class SessionDao extends MemorySessionDAO{

	@Override
	public Session readSession(Serializable sessionId) throws UnknownSessionException {
		return doReadSession(sessionId);
    }
}
